package org.example.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.Offermanagementtable;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.entity.Employee;
import org.example.mapper.EmployeeMapper;
@Service
public class EmployeeService extends ServiceImpl<EmployeeMapper, Employee> {
    public Employee findEmpAndDept(Integer userId) {
        return baseMapper.findEmpAndDept(userId);
    }
    public Employee getEmployeeByIdNumber(String employeeIdNumber) {
        QueryWrapper<Employee> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("employee_id_number", employeeIdNumber);
        return this.getOne(queryWrapper);
    }
    public List<Employee> oneandone() {
        return baseMapper.oneandone();
    }

}
